import React from 'react';
import {Spin, Card} from 'antd';

const CommonCard = props => {
    const {loading, children, ...rest} = props;
    return (
        <Card {...rest}>
            <Spin loading={loading}>{children}</Spin>
        </Card>
    );
};

export default CommonCard;
